import { _decorator } from 'cc';
import { UIComponent } from '../../../../Framework/Scripts/Managers/UIComponent';
import { MsgData } from '../../Data/MsgData';
const { ccclass, property } = _decorator;

@ccclass('GameEndReward_Ctr')
export class GameEndReward_Ctr extends UIComponent {
    protected onLoad(): void {
        this.InitUI();
    }

    start() {
        this.InitData();
    }

    protected onDestroy(): void {
        this.unRegisterEvent();
    }

    private InitUI(){
        this.registerEvent();

        this.AddButtonListener('btnBack',this,this.OnBtnCloseClick);
    }

    private InitData(){
        // MsgData.inst.ThemeMatchGameReWardReq();
    }

    private registerEvent(){
        // director.on(EventMsgKes.loading,this.onLoadingPro,this);
    }

    private unRegisterEvent(){
        // director.off(EventMsgKes.loading,this.onLoadingPro,this);
    }
}


